import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.locks.StampedLock;

public class StampedLockTest {
    final static Map<String, String> MAP = new HashMap(String, String);
    //创建一个印戳锁
    final static StampedLock STAMPED_LOCK = new StampedLock();
    //对共享数据的写操作
    public static Object put(String key, String value)
    {
        long stamp = STAMPED_LOCK.writeLock();
        try {
            
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
